
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<f:view>
    <link href="/evento/css/admin_1.css" rel="stylesheet" type="text/css"/>
    <t:div>

        <h:form id="fornulario">
            <h:panelGrid columns="1" bgcolor="#8B0000" width="100%">
                <h:outputLabel style="font-weight:bold; color:white"
                               value="Asignar Instructores" />
            </h:panelGrid>

            <h:outputLabel value="#{CursoController.cursoAdapter.curso}" />

            <rich:spacer height="10" />

            <rich:messages>
                <f:facet name="errorMarker">
                    <h:graphicImage value="/img/eliminar.png" />
                </f:facet>
            </rich:messages>

            <rich:spacer height="10" />

            <rich:listShuttle id="miListShuttle"
                              sourceValue="#{UsuarioWebController.listaUsuario}"
                              targetValue="#{CursoController.listaCurso}"
                              sourceRequired = "true"
                              targetRequired = "true"
                              var="items"
                              sourceListWidth="320"
                              targetListWidth="320"
                              sourceCaptionLabel="Instructores"
                              targetCaptionLabel="Instructores Asignados"
                              copyAllControlLabel="Copiar Todo"
                              copyControlLabel="Copiar"
                              removeControlLabel="Quitar"
                              removeAllControlLabel="Quitar Todo"
                              topControlLabel="Primero"
                              upControlLabel="Arriba"
                              downControlLabel="Abajo"
                              bottomControlLabel="Ultimo">
                
                <rich:column>
                    <h:outputLabel value="#{items.curso}" />
                </rich:column>
            </rich:listShuttle>

            <br/>
            <h:commandButton image="/img/btnAtras.gif" id="btnCancelar" accesskey="A" action="#{CursoController.listar}" title="Atras"/>
            &nbsp;&nbsp;
            <h:commandButton image="/img/btnGuardar.gif" id="btnGuardar" accesskey="G" action="#{TipoConceptoController.guardar}"  onclick="return confirm('Deseas guardar los cambios?');" title="Guardar" />
            <br/>
            <br/>
  
        </h:form>
    </t:div>
</f:view>
